Change GtkCalendarDetailFunc to return newly allocated string. (#339540)
authorMathias Hasselmann <hasselmm@src.gnome.org>
Thu, 17 Jan 2008 16:42:04 +0000 (16:42 +0000)
committerMathias Hasselmann <hasselmm@src.gnome.org>
Thu, 17 Jan 2008 16:42:04 +0000 (16:42 +0000)
commit188894d18e17169cb56710e7b97abcdd996f36eb
tree164bd99f5a9e6323f328116f95528ed4785129dc
parent7265ed4fc8832eeb7ef0c6c775f5d0d213886e3a
Change GtkCalendarDetailFunc to return newly allocated string. (#339540)

* gtk/gtkcalendar.c: Release the memory returned by the detail_func.
* gtk/gtkcalendar.h: Remove G_CONST_RETURN from GtkCalendarDetailFunc.
* tests/testcalendar.c: Duplicate calendar details before returning.

svn path=/trunk/; revision=19382
ChangeLog
gtk/gtkcalendar.c
gtk/gtkcalendar.h
tests/testcalendar.c